package com.search.common.dto.client;

import com.search.common.dto.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface UserClient {
    @GetMapping("{id}")
    public Address findAddressById(@PathVariable("id") Long id);

}
